package com.jsm.tf.controller;


import com.jsm.tf.director.Director;
import com.jsm.tf.view.LoginView;
import de.felixroske.jfxsupport.FXMLController;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.input.MouseEvent;
import org.springframework.beans.factory.annotation.Autowired;

@FXMLController
public class IndexController {
@Autowired
private Director director;
    @FXML
    private Button startGame;


    public void startGame(MouseEvent mouseEvent) {
        director.showView(LoginView.class);
    }
}

